package com.jcfy.project.module.domain;

import java.math.BigDecimal;
import com.jcfy.framework.aspectj.lang.annotation.Excel;
import com.jcfy.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 购物车对象 t_shop_car
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public class TShopCar extends BaseEntity {
    private static final long serialVersionUID=1L;

    /** 主键ID */
    private Long carId;

    /** 用户id(对应 t_users 表主键) */
    @Excel(name = "用户id(对应 t_users 表主键)" )
    private Long userId;

    /** 供应商ID */
    @Excel(name = "供应商ID" )
    private Long supplierId;

    /** 商品ID */
    @Excel(name = "商品ID" )
    private Long goodsId;

    /** 商品编号 */
    @Excel(name = "商品编号" )
    private String goodsNo;

    /** 商品名称 */
    @Excel(name = "商品名称" )
    private String goodsName;

    /** 商品货品的价格 */
    @Excel(name = "商品货品的价格" )
    private BigDecimal price;

    /** 商品货品的数量 */
    @Excel(name = "商品货品的数量" )
    private Integer number;

    /** 商品规格值列表，采用JSON数组格式 */
    @Excel(name = "商品规格值列表，采用JSON数组格式" )
    private String specifications;

    /** 购物车中商品是否选择状态 */
    @Excel(name = "购物车中商品是否选择状态" )
    private Integer checked;

    /** 商品图片 */
    @Excel(name = "商品图片" )
    private String picUrl;

    /** 状态 */
    @Excel(name = "状态" )
    private Integer status;

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Long getCarId() {
        return carId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }
    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() {
        return supplierId;
    }
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }
    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }
    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getNumber() {
        return number;
    }
    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public String getSpecifications() {
        return specifications;
    }
    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public Integer getChecked() {
        return checked;
    }
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId" ,getCarId())
            .append("userId" ,getUserId())
            .append("supplierId" ,getSupplierId())
            .append("goodsId" ,getGoodsId())
            .append("goodsNo" ,getGoodsNo())
            .append("goodsName" ,getGoodsName())
            .append("price" ,getPrice())
            .append("number" ,getNumber())
            .append("specifications" ,getSpecifications())
            .append("checked" ,getChecked())
            .append("picUrl" ,getPicUrl())
            .append("createTime" ,getCreateTime())
            .append("updateTime" ,getUpdateTime())
            .append("status" ,getStatus())
            .toString();
    }
}
